<?php
/**
 * htmlenties preprocessor
 * <pre>
 *  * value : the string to process
 * </pre>
 * This software is provided 'as-is', without any express or implied warranty.
 * In no event will the authors be held liable for any damages arising from the use of this software.
 *
 * @author     Jordi Boggiano <j.boggiano@seld.be>
 * @copyright  Copyright (c) 2008, Jordi Boggiano
 * @license    http://dwoo.org/LICENSE   Modified BSD License
 * @link       http://dwoo.org/
 * @version    1.0.0
 * @date       2008-10-23
 * @package    Dwoo
 */

function Dwoo_Plugin_specsymbols(Dwoo $dwoo, $value)
{
//	$trans = get_html_translation_table(HTML_ENTITIES);
/*
	$trans = array(); 
	$trans[chr(130)] = '&sbquo;';    // Single Low-9 Quotation Mark 
	$trans[chr(131)] = '&fnof;';    // Latin Small Letter F With Hook 
	$trans[chr(132)] = '&bdquo;';    // Double Low-9 Quotation Mark 
	$trans[chr(133)] = '&hellip;';    // Horizontal Ellipsis 
	$trans[chr(134)] = '&dagger;';    // Dagger 
	$trans[chr(135)] = '&Dagger;';    // Double Dagger 
	$trans[chr(136)] = '&circ;';    // Modifier Letter Circumflex Accent 
	$trans[chr(137)] = '&permil;';    // Per Mille Sign 
	$trans[chr(138)] = '&Scaron;';    // Latin Capital Letter S With Caron 
	$trans[chr(139)] = '&lsaquo;';    // Single Left-Pointing Angle Quotation Mark 
	$trans[chr(140)] = '&OElig;';    // Latin Capital Ligature OE 
	$trans[chr(145)] = '&lsquo;';    // Left Single Quotation Mark 
	$trans[chr(146)] = '&rsquo;';    // Right Single Quotation Mark 
	$trans[chr(147)] = '&ldquo;';    // Left Double Quotation Mark 
	$trans[chr(148)] = '&rdquo;';    // Right Double Quotation Mark 
	$trans[chr(149)] = '&bull;';    // Bullet 
	$trans[chr(150)] = '&ndash;';    // En Dash 
	$trans[chr(151)] = '&mdash;';    // Em Dash 
	$trans[chr(152)] = '&tilde;';    // Small Tilde 
	$trans[chr(153)] = '&trade;';    // Trade Mark Sign 
	$trans[chr(154)] = '&scaron;';    // Latin Small Letter S With Caron 
	$trans[chr(155)] = '&rsaquo;';    // Single Right-Pointing Angle Quotation Mark 
	$trans[chr(156)] = '&oelig;';    // Latin Small Ligature OE 
	$trans[chr(159)] = '&Yuml;';    // Latin Capital Letter Y With Diaeresis 
	$trans[chr(0xC397)] = 'sss';    // Latin Capital Letter Y With Diaeresis 
	$trans['euro'] = '&euro;';    // euro currency symbol 
	//C397
	
	
	
	foreach($trans as $k=>$v) {
		$value = str_replace($k, $v, $value);
	}
	*/
	
	$value = mb_encode_numericentity($value, array(0xc397), "UTF-8");
	return $value;
}